/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.fastcase.controller;

import com.icinfo.cloud.provider.punish.fastcase.service.ICaseAppraiseTemplateInfoService;
import com.icinfo.cloud.provider.punish.fastcase.vo.CaseAppraiseTemplateGroupInfoVo;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 描述: 案件评价模板表 case_appraise_template_info 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2023年02月02日
 */
@Slf4j
@RestController
@RequestMapping("/punish/fast/case/appraise/template")
public class CaseAppraiseTemplateInfoController extends BaseController {

    @Resource
    private ICaseAppraiseTemplateInfoService caseAppraiseTemplateInfoService;

    /**
     * 描述： 根据案件类型获取评价模板
     *
     * @author: zhengqiang
     * @date: 2023/2/3
     * @param: caseType
     * @return {@link Result< List< CaseAppraiseTemplateGroupInfoVo>>}
     **/
    @GetMapping("/getCaseAppraiseTemplateInfo")
    public Result<List<CaseAppraiseTemplateGroupInfoVo>> getCaseAppraiseTemplateInfo(@RequestParam String caseType) {
        List<CaseAppraiseTemplateGroupInfoVo> caseAppraiseTemplateInfo = caseAppraiseTemplateInfoService.getCaseAppraiseTemplateInfo(caseType);
        return Result.success(caseAppraiseTemplateInfo);
    }
}